Conditions | 1 |
Total Lines | 8 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Controller, Inject, UseGuards, Get, Query } from '@nestjs/common'; |
||
22 | |||
23 | @Get() |
||
24 | @Roles(UserRole.PHOTOGRAPHER) |
||
25 | @ApiOperation({summary: 'Get all schools'}) |
||
26 | public async index( |
||
27 | @Query() { page }: PaginationDTO |
||
28 | ): Promise<Pagination<SchoolView>> { |
||
29 | return await this.queryBus.execute(new GetSchoolsQuery(page)); |
||
30 | } |
||
32 |